package sword.offer.common;

/**
 * 剑指offer中树结点
 * @author 胡宇轩
 * @Email: yuxuan.hu01@bianlifeng.com
 */
public class TreeNode extends Node{
    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode() {}

    public TreeNode(int _val) {
        val = _val;
    }

    public TreeNode(int _val, TreeNode _left, TreeNode _right) {
        val = _val;
        left = _left;
        right = _right;
    }
}
